FROM idc-harbor.7moor.com/base/node:14.20.0-alpine3.16-pm2  as mc-builder
WORKDIR /app
COPY package.json .
RUN npm install
COPY . .
RUN npm run build

FROM nginx:1.16.0
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=mc-builder /app/dist /usr/share/nginx/html
EXPOSE 80
RUN echo 'echo init ok!!'